# ==========================================
# © 2020 EExuke. All Rights Reserved.
# ==========================================

KERN_VER = $(shell uname -r)
KERN_DIR = /lib/modules/$(KERN_VER)/build

# Kernel modules
obj-m += globalmem.o

# flags
EXTRA_CFLAGS=-g -O0

build: kernel_modules

kernel_modules:
	make -C $(KERN_DIR) M=$(CURDIR) modules

clean:
	make -C $(KERN_DIR) M=$(CURDIR) clean
